package org.example.leetcode.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhc
 * @since 2024-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 难度
     */
    private String difficulty;

    /**
     * 解答数量
     */
    private Integer solutionNum;

    /**
     * 题目名称
     */
    private String title;

    /**
     * 类型，数字代表，用逗号分割
     */
    private String type;

    private String titleSlug;

    private String description;

    private String payOnly;
    private BigDecimal acRate;
    private String answerUrl;
    private String testUrl;
    private Integer limitedTime;
    private Integer limitedMemory;
    private Long watchedTimes;

    private String creator;

    private String modifier;

    private Date creatorTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private String isDeleted;


}
